﻿using UnityEngine;
using UnityEditor;
using System.Collections;

[CustomEditor(typeof(MapInstance))]
public class ReadMap : Editor 
{

	public override void OnInspectorGUI () 
	{
		MapInstance map = (MapInstance) target;

		DrawDefaultInspector();

		if(GUILayout.Button("Ler Mapa")) 
		{
			map.CreateTexture();
		}
		                                     
	}
}
